import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;

import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JRadioButtonMenuItem;



public class MenuExp extends JFrame {
	
		public MenuExp() {
        
			setTitle("Project 5 Part B");
			setSize(150, 150);
        
			// Creates a menubar for a JFrame
			JMenuBar menuBar = new JMenuBar();
        
			// Add the menubar to the frame
			setJMenuBar(menuBar);
        
			// Define and add two drop down menu to the menubar
			JMenu fileMenu = new JMenu("File");
			JMenu viewMenu = new JMenu("View");
			menuBar.add(fileMenu);
		    menuBar.add(viewMenu);
        
			// Create and add simple menu item to one of the drop down menu
			//JMenuItem newAction = new JMenuItem("New");
			JMenuItem openAction = new JMenuItem("Open");
			JMenuItem exitAction = new JMenuItem("Exit");
			JMenuItem report = new JMenuItem("Report");
			JMenuItem maximumMPG = new JMenuItem("Maximum MPG");
			JMenuItem minimumMPG = new JMenuItem("Minimum MPG");
			JMenuItem averageMPG = new JMenuItem("Average MPG");
			
        
			// button in a ButtonGroup can be selected at a time.
			ButtonGroup bg = new ButtonGroup();
			//fileMenu.add(newAction);
			fileMenu.add(openAction);
			fileMenu.addSeparator();
			fileMenu.add(exitAction);
			viewMenu.add(report);
        	viewMenu.addSeparator();
        	viewMenu.add(maximumMPG);
        	viewMenu.add(minimumMPG);
        	viewMenu.add(averageMPG);
        	
        	//Open File Button's action
        	openAction.addActionListener(new ActionListener()
        	{
        	  public void actionPerformed(ActionEvent e)
        	  {
        		  FileParser source = new FileParser();
 
        	};
        	//New Button's action

		});
		}
}
